
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>5、redis · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-back-to-top-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-chapter-fold/chapter-fold.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-insert-logo/plugin.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="chapter5.1.html" />
    
    
    <link rel="prev" href="chapter4.2.html" />
    

    <style>
    @media only screen and (max-width: 640px) {
        .book-header .hidden-mobile {
            display: none;
        }
    }
    </style>
    <script>
        window["gitbook-plugin-github-buttons"] = {"buttons":[{"user":"xiaolanyun","repo":"DevOps_wiki","type":"star","size":"30px"}]};
    </script>

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="./">
            
                <a href="./">
            
                    
                    介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="chapter1.html">
            
                <a href="chapter1.html">
            
                    
                    1、设计思路
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="chapter1.1.html">
            
                <a href="chapter1.1.html">
            
                    
                    1.1、参考文献
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="chapter2.html">
            
                <a href="chapter2.html">
            
                    
                    2、服务器
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="chapter2.1.html">
            
                <a href="chapter2.1.html">
            
                    
                    2.1、配置静态ip
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="chapter2.2.html">
            
                <a href="chapter2.2.html">
            
                    
                    2.2、Centos7扩容
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="chapter3.html">
            
                <a href="chapter3.html">
            
                    
                    3、mysql
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="chapter3.1.html">
            
                <a href="chapter3.1.html">
            
                    
                    3.1、初始化登录
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="chapter3.2.html">
            
                <a href="chapter3.2.html">
            
                    
                    3.2、mysql5.7&8.0设置用户密码
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="chapter3.3.html">
            
                <a href="chapter3.3.html">
            
                    
                    3.3、mysql5.7&8.0开启远程登录权限
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="chapter3.4.html">
            
                <a href="chapter3.4.html">
            
                    
                    3.4、mysql8.0驱动
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="chapter3.5.html">
            
                <a href="chapter3.5.html">
            
                    
                    3.5、mysql更改端口号
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="chapter4.html">
            
                <a href="chapter4.html">
            
                    
                    4、mongodb
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="chapter4.1.html">
            
                <a href="chapter4.1.html">
            
                    
                    4.1、安装部署
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="chapter4.2.html">
            
                <a href="chapter4.2.html">
            
                    
                    4.2、集群测试
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter active" data-level="1.6" data-path="chapter5.html">
            
                <a href="chapter5.html">
            
                    
                    5、redis
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="chapter5.1.html">
            
                <a href="chapter5.1.html">
            
                    
                    5.1、安装部署
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="chapter5.2.html">
            
                <a href="chapter5.2.html">
            
                    
                    5.2、集群测试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="chapter5.3.html">
            
                <a href="chapter5.3.html">
            
                    
                    5.3、配置服务
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="chapter6.html">
            
                <a href="chapter6.html">
            
                    
                    6、Nexus
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="chapter6.1.html">
            
                <a href="chapter6.1.html">
            
                    
                    6.1、windows&linux_maven
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="chapter6.2.html">
            
                <a href="chapter6.2.html">
            
                    
                    6.2、Nexus
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="chapter7.html">
            
                <a href="chapter7.html">
            
                    
                    7、ZenTao
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="chapter7.1.html">
            
                <a href="chapter7.1.html">
            
                    
                    7.1、安装部署
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="chapter7.2.html">
            
                <a href="chapter7.2.html">
            
                    
                    7.2、禅道部分概念释义
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="chapter8.html">
            
                <a href="chapter8.html">
            
                    
                    8、jenkins
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" data-path="chapter8.1.html">
            
                <a href="chapter8.1.html">
            
                    
                    8.1、git
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="chapter8.2.html">
            
                <a href="chapter8.2.html">
            
                    
                    8.2、gradle
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.3" data-path="chapter8.3.html">
            
                <a href="chapter8.3.html">
            
                    
                    8.3、sdk
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4" data-path="chapter8.4.html">
            
                <a href="chapter8.4.html">
            
                    
                    8.4、jenkins安装部署
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="chapter9.html">
            
                <a href="chapter9.html">
            
                    
                    9、Sonar
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.1" data-path="chapter9.1.html">
            
                <a href="chapter9.1.html">
            
                    
                    9.1、SonarQube
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.2" data-path="chapter9.2.html">
            
                <a href="chapter9.2.html">
            
                    
                    9.2、配置服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.3" data-path="chapter9.3.html">
            
                <a href="chapter9.3.html">
            
                    
                    9.3、SonarQubeScanner
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.4" data-path="chapter9.4.html">
            
                <a href="chapter9.4.html">
            
                    
                    9.4、集成
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="chapter10.html">
            
                <a href="chapter10.html">
            
                    
                    10、Android本地商城被测件
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.11.1" data-path="chapter10.1.html">
            
                <a href="chapter10.1.html">
            
                    
                    10.1、Android本地商城需求
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2" data-path="chapter10.2.html">
            
                <a href="chapter10.2.html">
            
                    
                    10.2、Android本地商城功能设计
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.3" data-path="chapter10.3.html">
            
                <a href="chapter10.3.html">
            
                    
                    10.3、Android本地商城业务及数据库设计
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.4" data-path="chapter10.4.html">
            
                <a href="chapter10.4.html">
            
                    
                    10.4、Android本地商城UI设计
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.5" data-path="chapter10.5.html">
            
                <a href="chapter10.5.html">
            
                    
                    10.5、Android本地商城托管地址
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.6" data-path="chapter10.6.html">
            
                <a href="chapter10.6.html">
            
                    
                    10.6、Android自动化构建
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="chapter11.html">
            
                <a href="chapter11.html">
            
                    
                    11、Appium_自动化测试框架
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.12.1" data-path="chapter11.1.html">
            
                <a href="chapter11.1.html">
            
                    
                    11.1、总体设计思路
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.2" data-path="chapter11.2.html">
            
                <a href="chapter11.2.html">
            
                    
                    11.2、环境
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.3" data-path="chapter11.3.html">
            
                <a href="chapter11.3.html">
            
                    
                    11.3、自动化测试框架
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.4" data-path="chapter11.4.html">
            
                <a href="chapter11.4.html">
            
                    
                    11.4、自动化测试框架托管地址
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.5" data-path="chapter11.5.html">
            
                <a href="chapter11.5.html">
            
                    
                    11.5、并行测试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.6" data-path="chapter11.6.html">
            
                <a href="chapter11.6.html">
            
                    
                    11.6、并行测试框架托管地址
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.7" data-path="chapter11.7.html">
            
                <a href="chapter11.7.html">
            
                    
                    11.7、持续集成
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="chapter12.html">
            
                <a href="chapter12.html">
            
                    
                    12、Maxim_Monkey
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.13.1" data-path="chapter12.1.html">
            
                <a href="chapter12.1.html">
            
                    
                    12.1、Maxim_Monkey使用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.2" data-path="chapter12.2.html">
            
                <a href="chapter12.2.html">
            
                    
                    12.2、Maxim_Monkey托管地址
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.3" data-path="chapter12.3.html">
            
                <a href="chapter12.3.html">
            
                    
                    12.3、持续集成
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="chapter13.html">
            
                <a href="chapter13.html">
            
                    
                    13、postman&newman
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.14.1" data-path="chapter13.1.html">
            
                <a href="chapter13.1.html">
            
                    
                    13.1、postman接口测试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.2" data-path="chapter13.2.html">
            
                <a href="chapter13.2.html">
            
                    
                    13.2、newman
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.3" data-path="chapter13.3.html">
            
                <a href="chapter13.3.html">
            
                    
                    13.3、接口自动化示例托管地址
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.4" data-path="chapter13.4.html">
            
                <a href="chapter13.4.html">
            
                    
                    13.4、持续集成
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.15" data-path="chapter14.html">
            
                <a href="chapter14.html">
            
                    
                    14、open-falcon
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.15.1" data-path="chapter14.1.html">
            
                <a href="chapter14.1.html">
            
                    
                    14.1、环境
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.2" data-path="chapter14.2.html">
            
                <a href="chapter14.2.html">
            
                    
                    14.2、单机&分布式安装说明
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.3" data-path="chapter14.3.html">
            
                <a href="chapter14.3.html">
            
                    
                    14.3、dashboard
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.4" data-path="chapter14.4.html">
            
                <a href="chapter14.4.html">
            
                    
                    14.4、Agent
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.5" data-path="chapter14.5.html">
            
                <a href="chapter14.5.html">
            
                    
                    14.5、Transfer
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.6" data-path="chapter14.6.html">
            
                <a href="chapter14.6.html">
            
                    
                    14.6、Graph
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.7" data-path="chapter14.7.html">
            
                <a href="chapter14.7.html">
            
                    
                    14.7、API
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.8" data-path="chapter14.8.html">
            
                <a href="chapter14.8.html">
            
                    
                    14.8、HBS
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.9" data-path="chapter14.9.html">
            
                <a href="chapter14.9.html">
            
                    
                    14.9、Judge
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.10" data-path="chapter14.10.html">
            
                <a href="chapter14.10.html">
            
                    
                    14.10、Alarm
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.11" data-path="chapter14.11.html">
            
                <a href="chapter14.11.html">
            
                    
                    14.11、Nodata
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.12" data-path="chapter14.12.html">
            
                <a href="chapter14.12.html">
            
                    
                    14.12、Aggregator
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.16" data-path="chapter15.html">
            
                <a href="chapter15.html">
            
                    
                    15、gitbook_wiki
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.16.1" data-path="chapter15.1.html">
            
                <a href="chapter15.1.html">
            
                    
                    15.1、wiki搭建使用
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.17" data-path="chapter16.html">
            
                <a href="chapter16.html">
            
                    
                    16、前端
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.17.1" data-path="chapter16.1.html">
            
                <a href="chapter16.1.html">
            
                    
                    16.1、UI设计
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.2" data-path="chapter16.2.html">
            
                <a href="chapter16.2.html">
            
                    
                    16.2、前端托管地址
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.18" data-path="chapter17.html">
            
                <a href="chapter17.html">
            
                    
                    17、附加说明
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.18.1" data-path="chapter17.1.html">
            
                <a href="chapter17.1.html">
            
                    
                    17.1、服务器配置一览
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >5、redis</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h3 id="5&#x3001;redis">5&#x3001;redis</h3>
<p>&#x4ECB;&#x7ECD;</p>
<p>Redis&#x662F;&#x4E00;&#x4E2A;&#x5F00;&#x6E90;&#x7684;&#x4F7F;&#x7528;ANSI <a href="https://baike.baidu.com/item/C%E8%AF%AD%E8%A8%80" target="_blank">C&#x8BED;&#x8A00;</a>&#x7F16;&#x5199;&#x3001;&#x652F;&#x6301;&#x7F51;&#x7EDC;&#x3001;&#x53EF;&#x57FA;&#x4E8E;&#x5185;&#x5B58;&#x4EA6;&#x53EF;&#x6301;&#x4E45;&#x5316;&#x7684;&#x65E5;&#x5FD7;&#x578B;&#x3001;Key-Value<a href="https://baike.baidu.com/item/%E6%95%B0%E6%8D%AE%E5%BA%93/103728" target="_blank">&#x6570;&#x636E;&#x5E93;</a>&#xFF0C;&#x5E76;&#x63D0;&#x4F9B;&#x591A;&#x79CD;&#x8BED;&#x8A00;&#x7684;API&#x3002;</p>
<p>&#x9AD8;&#x53EF;&#x7528;redis&#x96C6;&#x7FA4;&#x642D;&#x5EFA;&#x4EE5;&#x53CA;&#x539F;&#x7406;&#x8BE6;&#x89E3;.</p>
<p>1&#x3001;Redis&#x96C6;&#x7FA4;&#x7684;&#x6570;&#x636E;&#x5206;&#x7247;</p>
<p>Redis&#x96C6;&#x7FA4;&#x6CA1;&#x6709;&#x4F7F;&#x7528;&#x4E00;&#x81F4;&#x6027;hash&#xFF0C;&#x800C;&#x662F;&#x5F15;&#x5165;&#x4E86;&#x54C8;&#x5E0C;&#x69FD;&#x7684;&#x6982;&#x5FF5;</p>
<p>Redis&#x96C6;&#x7FA4;&#x6709;16384&#x4E2A;&#x54C8;&#x5E0C;&#x69FD;&#xFF0C;&#x6BCF;&#x4E2A;key&#x901A;&#x8FC7;CRC16&#x6821;&#x9A8C;&#x540E;&#x5BF9;16384&#x53D6;&#x6A21;&#x6765;&#x51B3;&#x5B9A;&#x653E;&#x7F6E;&#x54EA;&#x4E2A;&#x69FD;&#xFF0C;&#x96C6;&#x7FA4;&#x7684;&#x6BCF;&#x4E2A;&#x89E3;&#x70B9;&#x8D1F;&#x8D23;&#x4E00;&#x90E8;&#x5206;hash&#x69FD;</p>
<p>&#x4E3E;&#x4F8B;&#xFF1A;&#x5F53;&#x524D;&#x96C6;&#x7FA4;&#x6709;3&#x4E2A;&#x89E3;&#x70B9;&#xFF0C;&#x90A3;&#x4E48;&#xFF1A;</p>
<p>&#x8282;&#x70B9;A&#x5305;&#x542B;0-5500&#x53F7;&#x54C8;&#x5E0C;&#x69FD;</p>
<p>&#x8282;&#x70B9;B&#x5305;&#x542B;5501-11000&#x53F7;&#x54C8;&#x5E0C;&#x69FD;</p>
<p>&#x8282;&#x70B9;C&#x5305;&#x542B;11001-16384&#x53F7;&#x54C8;&#x5E0C;&#x69FD;</p>
<p>&#x8FD9;&#x79CD;&#x7ED3;&#x6784;&#x5F88;&#x5BB9;&#x6613;&#x6DFB;&#x52A0;&#x6216;&#x8005;&#x5220;&#x9664;&#x8282;&#x70B9;&#xFF0C;&#x6BD4;&#x5982;&#x5982;&#x679C;&#x6211;&#x60F3;&#x65B0;&#x6DFB;&#x52A0;&#x4E2A;&#x8282;&#x70B9;D,&#x6211;&#x9009;&#x54DF;&#x4ECE;&#x8282;&#x70B9;ABC&#x4E2D;&#x5F97;&#x5230;&#x90E8;&#x5206;&#x69FD;&#x5230;D&#x4E0A;&#x3002;&#x5982;&#x679C;&#x6211;&#x79FB;&#x9664;&#x8282;&#x70B9;A&#xFF0C;&#x9700;&#x8981;&#x5C06;A&#x4E2D;&#x7684;&#x69FD;&#x79FB;&#x5230;B&#x548C;C&#x8282;&#x70B9;&#x4E0A;&#xFF0C;&#x7136;&#x540E;&#x5C06;&#x6CA1;&#x6709;&#x4EFB;&#x4F55;&#x69FD;&#x7684;A&#x8282;&#x70B9;&#x4ECE;&#x96C6;&#x7FA4;&#x4E2D;&#x79FB;&#x9664;&#x5373;&#x53EF;&#x3002;&#x7531;&#x4E8E;&#x4ECE;&#x4E00;&#x4E2A;&#x8282;&#x70B9;&#x5C06;&#x54C8;&#x5E0C;&#x69FD;&#x79FB;&#x52A8;&#x5230;&#x53E6;&#x4E00;&#x4E2A;&#x8282;&#x70B9;&#x5E76;&#x4E0D;&#x4F1A;&#x505C;&#x6B62;&#x670D;&#x52A1;&#xFF0C;&#x6240;&#x4EE5;&#x65E0;&#x8BBA;&#x6DFB;&#x52A0;&#x5220;&#x9664;&#x6216;&#x8005;&#x6539;&#x53D8;&#x67D0;&#x4E2A;&#x8282;&#x70B9;&#x7684;&#x54C8;&#x5E0C;&#x69FD;&#x7684;&#x6570;&#x91CF;&#x90FD;&#x4E0D;&#x4F1A;&#x9020;&#x6210;&#x96C6;&#x7FA4;&#x4E0D;&#x53EF;&#x7528;&#x7684;&#x72B6;&#x6001;</p>
<p>2&#x3001;Redis&#x96C6;&#x7FA4;&#x7684;&#x4E3B;&#x4ECE;&#x590D;&#x5236;&#x6A21;&#x578B;</p>
<p>&#x4E3A;&#x4E86;&#x4F7F;&#x5728;&#x90E8;&#x5206;&#x8282;&#x70B9;&#x5931;&#x8D25;&#x6216;&#x8005;&#x5927;&#x90E8;&#x5206;&#x8282;&#x70B9;&#x65E0;&#x6CD5;&#x901A;&#x4FE1;&#x7684;&#x60C5;&#x51B5;&#x4E0B;&#x96C6;&#x7FA4;&#x4ECD;&#x7136;&#x53EF;&#x7528;&#xFF0C;&#x6240;&#x4EE5;&#x96C6;&#x7FA4;&#x4F7F;&#x7528;&#x4E86;&#x4E3B;&#x4ECE;&#x590D;&#x5236;&#x6A21;&#x578B;&#xFF0C;&#x6BCF;&#x4E2A;&#x8282;&#x70B9;&#x90FD;&#x4F1A;&#x6709;N-1&#x5404;&#x590D;&#x5236;&#x54C1;</p>
<p>&#x5728;&#x6211;&#x4EEC;&#x4F8B;&#x5B50;&#x4E2D;&#x5177;&#x6709;ABC&#x4E09;&#x4E2A;&#x8282;&#x70B9;&#x7684;&#x96C6;&#x7FA4;&#xFF0C;&#x5728;&#x6CA1;&#x6709;&#x590D;&#x5236;&#x6A21;&#x578B;&#x60C5;&#x51B5;&#x4E0B;&#xFF0C;&#x5982;&#x679C;&#x8282;&#x70B9;B&#x5931;&#x8D25;&#x4E86;&#xFF0C;&#x90A3;&#x4E48;&#x6574;&#x4E2A;&#x96C6;&#x7FA4;&#x5C31;&#x4F1A;&#x8863;&#x536B;&#x7F3A;&#x5C11;&#x4E86;5501-11000&#x8FD9;&#x4E2A;&#x8303;&#x56F4;&#x5185;&#x7684;&#x69FD;&#x800C;&#x4E0D;&#x53EF;&#x7528;</p>
<p>&#x7136;&#x800C;&#x5982;&#x679C;&#x5728;&#x96C6;&#x7FA4;&#x521B;&#x5EFA;&#x7684;&#x65F6;&#x5019;&#xFF08;&#x6216;&#x8005;&#x8FC7;&#x4E00;&#x6BB5;&#x65F6;&#x95F4;&#xFF09;&#x6211;&#x4EEC;&#x4E3A;&#x6BCF;&#x4E2A;&#x8282;&#x70B9;&#x6DFB;&#x52A0;&#x4E00;&#x4E2A;&#x4ECE;&#x8282;&#x70B9;&#xFF0C;A1,B1,C1&#xFF0C;&#x90A3;&#x4E48;&#x6574;&#x4E2A;&#x96C6;&#x7FA4;&#x4FBF;&#x6709;&#x4E09;&#x4E2A;master&#x8282;&#x70B9;&#x548C;&#x4E09;&#x4E2A;slave&#x8282;&#x70B9;&#x7EC4;&#x6210;&#xFF0C;&#x8FD9;&#x6837;&#x5728;&#x8282;&#x70B9;B&#x5931;&#x8D25;&#x540E;&#xFF0C;&#x96C6;&#x7FA4;&#x4FBF;&#x4F1A;&#x9009;&#x62E9;B1&#x4E3A;&#x65B0;&#x7684;&#x4E3B;&#x8282;&#x70B9;&#x7EE7;&#x7EED;&#x670D;&#x52A1;&#xFF0C;&#x6574;&#x4E2A;&#x96C6;&#x7FA4;&#x4FBF;&#x4E0D;&#x4F1A;&#x56E0;&#x4E3A;&#x69FD;&#x627E;&#x4E0D;&#x5230;&#x800C;&#x4E0D;&#x53EF;&#x7528;&#x3002;</p>
<p>&#x4E0D;&#x8FC7;&#x5F53;B&#x548C;B1&#x90FD;&#x5931;&#x8D25;&#x540E;&#xFF0C;&#x96C6;&#x7FA4;&#x5F0F;&#x4E0D;&#x53EF;&#x7528;&#x7684;</p>
<p>3&#x3001;Redis&#x4E00;&#x81F4;&#x6027;&#x4FDD;&#x8BC1;</p>
<p>Redis&#x5E76;&#x4E0D;&#x80FD;&#x4FDD;&#x8BC1;&#x6570;&#x636E;&#x7684;&#x4E00;&#x81F4;&#x6027;&#xFF0C;&#x8FD9;&#x610F;&#x5473;&#x7740;&#x5728;&#x5B9E;&#x9645;&#x4E2D;&#x96C6;&#x7FA4;&#x5728;&#x7279;&#x5B9A;&#x7684;&#x6761;&#x4EF6;&#x4E0B;&#x53EF;&#x80FD;&#x4F1A;&#x4E22;&#x5931;&#x5199;&#x64CD;&#x4F5C;</p>
<p>&#x7B2C;&#x4E00;&#x4E2A;&#x539F;&#x56E0;&#x662F;&#x56E0;&#x4E3A;&#x96C6;&#x7FA4;&#x4F7F;&#x7528;&#x4E86;&#x5F02;&#x6B65;&#x590D;&#x5236;&#xFF0C;&#x5199;&#x64CD;&#x4F5C;&#x8FC7;&#x7A0B;&#xFF1A;</p>
<p>&#x5BA2;&#x6237;&#x7AEF;&#x5411;&#x4E3B;&#x8282;&#x70B9;B&#x5199;&#x5165;&#x4E00;&#x6761;&#x547D;&#x4EE4;</p>
<p>&#x4E3B;&#x8282;&#x70B9;B&#x60F3;&#x5BA2;&#x6237;&#x7AEF;&#x56DE;&#x590D;&#x547D;&#x4EE4;&#x72B6;&#x6001;</p>
<p>&#x4E3B;&#x8282;&#x70B9;&#x5C06;&#x5199;&#x64CD;&#x4F5C;&#x590D;&#x5236;&#x7ED9;&#x4ED6;&#x7684;&#x4ECE;&#x8282;&#x70B9;B1,B2,B3</p>
<p>&#x4E3B;&#x8282;&#x70B9;&#x5BF9;&#x547D;&#x4EE4;&#x7684;&#x590D;&#x5236;&#x5DE5;&#x4F5C;&#x53D1;&#x751F;&#x5728;&#x8FD4;&#x56DE;&#x547D;&#x4EE4;&#x56DE;&#x590D;&#x4E4B;&#x540E;&#xFF0C;&#x56E0;&#x4E3A;&#x5982;&#x679C;&#x6BCF;&#x6B21;&#x5904;&#x7406;&#x547D;&#x4EE4;&#x8BF7;&#x6C42;&#x90FD;&#x9700;&#x8981;&#x7B49;&#x5F85;&#x590D;&#x5236;&#x64CD;&#x4F5C;&#x5B8C;&#x6210;&#x4E4B;&#x540E;&#x7684;&#x8BDD;&#xFF0C;&#x90A3;&#x4E48;&#x4E3B;&#x8282;&#x70B9;&#x5904;&#x7406;&#x547D;&#x4EE4;&#x8BF7;&#x6C42;&#x7684;&#x901F;&#x5EA6;&#x5C06;&#x6781;&#x5927;&#x5730;&#x964D;&#x4F4E;-------&#x6211;&#x4EEC;&#x5FC5;&#x987B;&#x5728;&#x6027;&#x80FD;&#x548C;&#x4E00;&#x81F4;&#x6027;&#x4E4B;&#x95F4;&#x505A;&#x51FA;&#x6743;&#x8861;&#x3002;&#x6CE8;&#x610F;&#xFF1A;redis&#x96C6;&#x7FA4;&#x53EF;&#x80FD;&#x4F1A;&#x5728;&#x5C06;&#x6765;&#x63D0;&#x4F9B;&#x540C;&#x6B65;&#x7684;&#x5199;&#x7684;&#x65B9;&#x6CD5;&#x3002;Redis&#x96C6;&#x7FA4;&#x53E6;&#x5916;&#x4E00;&#x4E2A;&#x53EF;&#x80FD;&#x4F1A;&#x4E22;&#x7F6E;&#x547D;&#x4EE4;&#x7684;&#x60C5;&#x51B5;&#x662F;&#x96C6;&#x7FA4;&#x51FA;&#x73B0;&#x7F51;&#x7EDC;&#x5206;&#x533A;&#xFF0C;&#x5E76;&#x4E14;&#x4E00;&#x4E2A;&#x5BA2;&#x6237;&#x7AEF;&#x4E0E;&#x81F3;&#x5C11;&#x4E00;&#x4E2A;&#x4E3B;&#x8282;&#x70B9;&#x5728;&#x5185;&#x7684;&#x5C11;&#x6570;&#x5B9E;&#x4F8B;&#x88AB;&#x5B64;&#x7ACB;</p>
<p>&#x4E3E;&#x4F8B;&#xFF1A;&#x5047;&#x8BBE;&#x96C6;&#x7FA4;&#x5305;&#x542B;A,B,C,A1,B1,C1&#x516D;&#x4E2A;&#x8282;&#x70B9;&#xFF0C;&#x8FD8;&#x6709;&#x4E00;&#x4E2A;&#x54ED;&#x62A4;&#x77ED;z1&#xFF0C;&#x5047;&#x8BBE;&#x96C6;&#x7FA4;&#x4E2D;&#x53D1;&#x751F;&#x7F51;&#x7EDC;&#x5206;&#x533A;&#xFF0C;&#x90A3;&#x4E48;&#x96C6;&#x7FA4;&#x53EF;&#x80FD;&#x4F1A;&#x5206;&#x4E3A;&#x4E24;&#x65B9;&#xFF0C;&#x5927;&#x90E8;&#x5206;&#x7684;&#x4E00;&#x65B9;&#x5305;&#x542B;&#x8282;&#x70B9;A,C,A1,B1,C1&#xFF0C;&#x5C0F;&#x90E8;&#x5206;&#x7684;&#x4E00;&#x65B9;&#x5219;&#x5305;&#x542B;&#x8282;&#x70B9;B&#x548C;&#x5BA2;&#x6237;&#x7AEF;z1&#xFF0C;z1&#x4ECD;&#x7136;&#x80FD;&#x591F;&#x60F3;&#x4E3B;&#x8282;&#x70B9;B&#x4E2D;&#x5199;&#x5165;&#xFF0C;&#x82E5;&#x679C;&#x7F51;&#x7EDC;&#x5206;&#x533A;&#x53D1;&#x751F;&#x65F6;&#x95F4;&#x8F83;&#x77ED;&#xFF0C;&#x90A3;&#x4E48;&#x96C6;&#x7FA4;&#x5C06;&#x4F1A;&#x7EE7;&#x7EED;&#x6B63;&#x5E38;&#x8FD0;&#x884C;&#xFF0C;&#x5982;&#x679C;&#x5206;&#x533A;&#x65F6;&#x95F4;&#x8DB3;&#x591F;&#x8BA9;&#x5927;&#x90E8;&#x5206;&#x7684;&#x4EE5;&#x653E;B1&#x9009;&#x4E3E;&#x6210;&#x4E3A;&#x65B0;&#x7684;master&#xFF0C;&#x90A3;&#x4E48;z1&#x5199;&#x5165;B&#x4E2D;&#x7684;&#x6570;&#x636E;&#x5C31;&#x4F1A;&#x4E22;&#x5931;&#x3002;</p>
<p>&#x6CE8;&#x610F;&#xFF1A;&#x5728;&#x7F51;&#x7EDC;&#x5206;&#x88C2;&#x5F27;&#x7EBF;&#x671F;&#x95F4;&#xFF0C;&#x5BA2;&#x6237;&#x7AEF;z1&#x53EF;&#x4EE5;&#x5411;&#x4E3B;&#x8282;&#x70B9;B&#x53D1;&#x9001;&#x5199;&#x547D;&#x4EE4;&#x7684;&#x6700;&#x5927;&#x65F6;&#x95F4;&#x662F;&#x6709;&#x9650;&#x5236;&#x7684;&#xFF0C;&#x8FD9;&#x4E00;&#x65F6;&#x95F4;&#x9650;&#x5236;&#x79F0;&#x4E3A;&#x8282;&#x70B9;&#x8D85;&#x65F6;&#x65F6;&#x95F4;&#xFF08;node timeout&#xFF09;&#xFF0C;&#x662F;Redis&#x96C6;&#x7FA4;&#x7684;&#x4E00;&#x4E2A;&#x91CD;&#x8981;&#x7684;&#x914D;&#x7F6E;&#x9009;&#x9879;</p>

<script>console.log("plugin-popup....");document.onclick = function(e){ e.target.tagName === "IMG" && window.open(e.target.src,e.target.src)}</script><style>img{cursor:pointer}</style>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="chapter4.2.html" class="navigation navigation-prev " aria-label="Previous page: 4.2、集群测试">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="chapter5.1.html" class="navigation navigation-next " aria-label="Next page: 5.1、安装部署">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"5、redis","level":"1.6","depth":1,"next":{"title":"5.1、安装部署","level":"1.6.1","depth":2,"path":"chapter5.1.md","ref":"chapter5.1.md","articles":[]},"previous":{"title":"4.2、集群测试","level":"1.5.2","depth":2,"path":"chapter4.2.md","ref":"chapter4.2.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["back-to-top-button","chapter-fold","expandable-chapters-small","insert-logo","splitter","popup","github","github-buttons","livereload"],"pluginsConfig":{"chapter-fold":{},"github":{"url":"https://github.com/xiaolanyun","size":"50px"},"livereload":{},"splitter":{},"search":{},"popup":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"back-to-top-button":{},"github-buttons":{"buttons":[{"user":"xiaolanyun","repo":"DevOps_wiki","type":"star","size":"30px"}]},"expandable-chapters-small":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"insert-logo":{"style":"background: none; max-height: 60px; min-height: 30px","url":"http://server.zzidc.com/uploads/allimg/171120/1-1G120162T3202.png"}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"chapter5.md","mtime":"2019-04-27T03:26:19.660Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-05-07T07:59:20.478Z"},"basePath":".","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="gitbook/gitbook.js"></script>
    <script src="gitbook/theme.js"></script>
    
        
        <script src="gitbook/gitbook-plugin-back-to-top-button/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-chapter-fold/chapter-fold.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-insert-logo/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-github/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-github-buttons/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

